import requests


class LoginAPI:
    def __init__(self):
        self.url_login = "http://user-p2p-test.itheima.net/member/public/login"

    def login(self, login_data):
        return requests.post(url=self.url_login, data=login_data)
